<template>
  <div class="tab-content">
    {{ contentData[tabIndex] | replaceNumToChs }}
  </div>
</template>

<script>
//导入state对象
import { mapState } from "vuex";
import { replaceNumToChs } from "../../../filters/index";

export default {
  name: "TabContent",
  props: {
    contentData: Array,
    // curIdx: Number,
  },
  computed: {
    ...mapState(["tabIndex"]),
  },
  filters: {
    replaceNumToChs,
  },
};
</script>

<style lang="scss" scoped>
.tab-content {
  height: 450px;
  text-align: center;
  line-height: 450px;
  font-size: 100px;
}
</style>